package io.file;

import java.io.File;
import java.io.IOException;

public class Test2 {
    public static void main(String[] args) throws IOException {
        // 相对路径
//        String projectPath = "ikun.txt";
//        String modulePath = "AdvanceCode\\ikun.txt";
//        String path = "AdvanceCode\\src\\ikun.txt";
        // createNewFile()
//        File file = new File("AdvancedCode\\src\\io/ikun.txt");
//        System.out.println(file.createNewFile());
//        File file = new File("AdvancedCode/src/io/aaa/bbb/ccc");
//        System.out.println(file.mkdirs());

        File file1 = new File("AdvancedCode");
        File[] files = file1.listFiles();
        for (File file2 : files) {
            System.out.println(file2);
        }


    }
}
